<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/11/26
 * Time: 20:20
 */

namespace app\libs;

use Yii;

class Tools
{
    /**
     * 禁用debug
     */
    public static function DebugToolbarOff()
    {
        if (class_exists('\yii\debug\Module')) {
            Yii::$app->view->off(\yii\web\View::EVENT_END_BODY, [\yii\debug\Module::getInstance(), 'renderToolbar']);
        }
    }
}